package com.cong._39;

import org.junit.Test;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

public class SolutionTest_39 {

    @Test
    public void combinationSum() {
        int[] candidates = new int[] {2, 3, 6, 7};
        List<List<Integer>> r;
        r = new Solution().combinationSum(candidates, 7);
        System.out.println(r);
    }

    @Test
    public void  t() {
        List<String> l = new LinkedList<>(Arrays.asList("a", "b", "c"));
        l.add(0, "b");
        l.add(4, "f");
        System.out.println(l);
//        l.removeIf((it) ->
//            l.indexOf(it) == 0
//        );
        System.out.println(l);
    }
}